package com.fyt.controller.user.account;


import com.alibaba.fastjson.JSONObject;
import com.fyt.service.user.account.InfoService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;


@RestController
@Api(value="UserInfo",tags="查看登录用户信息")
public class InfoController {
    @Autowired
    private InfoService infoService;

    @ApiOperation(value="获取登录用户信息的controller接口")
    @GetMapping("/api/user/account/info/")
    public JSONObject getInfo(){
        return infoService.getInfo();
    }

}
